package Hibernate.dao;

import java.util.ArrayList;
import java.util.Map;

/**
 * Expert entity. @author MyEclipse Persistence Tools
 */

public class Expert implements java.io.Serializable {

	// Fields

	private String expertId;
	private String expertName;
	private String expertPsd;
	private String expertEmai;
	private String examId;

	// Constructors

	/** default constructor */
	public Expert() {
	}

	/** full constructor */
	public Expert(String expertId, String expertName, String expertPsd,
			String expertEmai, String examId) {
		this.expertId = expertId;
		this.expertName = expertName;
		this.expertPsd = expertPsd;
		this.expertEmai = expertEmai;
		this.examId = examId;
	}

	// Property accessors

	public String getExpertId() {
		return this.expertId;
	}

	public void setExpertId(String expertId) {
		this.expertId = expertId;
	}

	public String getExpertName() {
		return this.expertName;
	}

	public void setExpertName(String expertName) {
		this.expertName = expertName;
	}

	public String getExpertPsd() {
		return this.expertPsd;
	}

	public void setExpertPsd(String expertPsd) {
		this.expertPsd = expertPsd;
	}

	public String getExpertEmai() {
		return this.expertEmai;
	}

	public void setExpertEmai(String expertEmai) {
		this.expertEmai = expertEmai;
	}

	public String getExamId() {
		return this.examId;
	}

	public void setExamId(String examId) {
		this.examId = examId;
	}

	public void setInfo(Map<String, String> value) {
		// TODO Auto-generated method stub
		if(value.containsKey("expertId")){
			this.setExpertId(value.get("expertId"));
		}
		if(value.containsKey("expertName")){
			this.setExpertName(value.get("expertName"));
		}
		if(value.containsKey("password")){
			this.setExpertPsd(value.get("password"));
		}
		if(value.containsKey("email")){
			this.setExpertEmai(value.get("email"));
		}
		if(value.containsKey("epclassId")){
			this.setExamId(value.get("epclassId"));
		}
	}

}